<include file="Common@Backend/header" />

    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            {$breadcrumb.A}
        </h3>
        <ul class="breadcrumb">
            <li>
                {$breadcrumb.M}
            </li>
            <li>
                {$breadcrumb.C}
            </li>
            <li class="active"> {$breadcrumb.A}  </li>
        </ul>
    </div>
    <!-- page heading end-->
    
    <!--body wrapper start-->

    <div class="wrapper">
        <div class="row">
            <div class="col-sm-12">
                <section class="panel">
                    <header class="panel-heading">
                        {$title}
                    </header>
                    <div class="panel-body">
                        <div class="clearfix">
                            <div class="btn-group">
                                <a class="btn btn-primary" href="{$addGoods}">
                                   <i class="fa fa-plus"> {$text} </i>
                                </a>
                            </div>
                            <notempty name="back">
                            <div class="btn-group">
                                <a class="btn btn-primary" href="{$back}">
                                   <i class="fa fa-reply"> 返回 </i>
                                </a>
                            </div>
                            </notempty>
                        </div>
                        <div class="space15"></div>
                        <section id="unseen" style="margin-top: 15px;">
                            <table class="table table-bordered table-striped table-condensed">
                                <thead>
                                <tr>
                                    <th>订单号：<span style="color: #FF4E00">{$order[0]['ordercode']}</span></th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>用户名称：{$order[0]['ordername']}</td>
                                    </tr>
                                    <tr>
                                        <td>收货人姓名：<span  style="color: blue">{$order[0]['buyusername']}</span></td>
                                    </tr>
                                    <tr>
                                        <td>订单总价钱：<span  style="color: red">{$order[0]['totalpay']}</span></td>
                                    </tr>
                                    <tr>
                                        <td>收货地址：{$order[0]['newaddress']}</td>
                                    </tr>
                                    <tr>
                                        <td>订单状态：
                                        <!-- <span  style="color: red"> -->
                                              <if condition="$order[0]['status'] eq 0"><span  style="color: red">未付款</span>
                                              <elseif condition="$order[0]['status'] eq 4"/><span  style="color: yellow">订单已取消</span>
                                              <elseif condition="$order[0]['status'] eq 1"/><span  style="color: blue">已付款</span>
                                              <else />
                                              </if>
                                        <!-- </span> -->
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>支付方式：{$order[0]['paytype']}</td>
                                    </tr>
                                    <foreach name="order[0]['goods']" item="v">
                                    <tr>
                                        <td>
                                        <img src="__PUBLIC__/csf/upload/{$v['photo']}" width="100px" height="100px">-----商品名称：<span style="color: red">{$v['goodsname']}</span>
                                        -----购买数量：<span style="color: red">{$v['buynum']}</span>
                                        -----单价：<span style="color: red">{$v['price']}</span>
                                        </td>
                                    </tr>
                                    </foreach>
                                    <tr>
                                        <td>买家留言:{$order[0]['usermessage']}</td>
                                    </tr>
                                </tbody>
                            </table>
                            <a href="{$index}"><button  style="margin:0px;padding:0px;background-color: green;color: #fff;width: 80px;height: 30px;line-height: 30px;border-radius: 5px;letter-spacing: 5px">返回</button></a>
                        </section>
                    </div>
                </section>
                <!-- {$page} -->
            </div>
        </div>
    </div>
    <!--body wrapper end-->
     <script type="text/javascript">//删除事件
                function del(){
                    if(confirm('确定要删除吗？')){
                        return true;
                    }else{
                        return false;
                    }
                }
            </script>
<include file="Common@Backend/footer" />